@Echo off

net stop "DM4 Server"

set msbuild=%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /nologo /verbosity:minimal /t:Rebuild
set dm4=E:\International_Consultants\DM4
set svn="C:\Program Files\TortoiseSVN\bin\svn.exe"

Rem SVN
%svn% co http://l3s-dbdvlintl1.aristotledc.com:8080/svn/COMMON F:\COMMON
%svn% co http://l3s-dbdvlintl1.aristotledc.com:8080/svn/CURRENT F:\IGOR\CURRENT
%svn% co http://l3s-dbdvlintl1.aristotledc.com:8080/svn/DM4 F:\IGOR\DM4

Rem DM4SRV
If not exist %dm4%\daemons md %dm4%\daemons
If not exist %dm4%\modules md %dm4%\modules
CD F:\IGOR\DM4\src\DM4\DM4SRV\
F:
%msbuild%
copy /Y F:\IGOR\DM4\bin\version.xml %dm4%\version.xml

Rem Offenders
If not exist %dm4%\offenders md %dm4%\offenders
CD F:\IGOR\DM4\src\Offenders
F:
%msbuild% OffendersWithoutClient.sln

net start "DM4 Server"
pause
